Skip to content

Conversation

jasonrhodes
Copy link
Member

@jasonrhodes jasonrhodes commented Mar 21, 2025

Fixes #1070

Docs for this option are here: https://www.elastic.co/docs/api/doc/serverless/operation/operation-createsloop#operation-createsloop-body-application-json-settings-preventinitialbackfill

I've not done any Terraform additions like this one, so there is a good chance the syntax here is wrong — I see that this new setting likely needs to be added in a few additional places to make use of it after it's been added to the schema, so I'd appreciate guidance on where that needs to happen, exactly.

At any rate, it would be great to add this field, and as it's a new, optional field, it shouldn't have any breaking change consequences whatsoever.

UPDATE: I re-generated the SLO model files with openapi-generator, hoping it would only produce a small scope of changes in those files. It seems to have produced a LOT of changes, so I'll wait for guidance on how to handle that.

@neiljbrookes
Copy link

Will address #1070

jasonrhodes and others added 4 commits September 15, 2025 22:12
I think the generated settings model found at generated/slo/model_settings.go is still missing a final component here, but that file is generated by OpenAPI so we probably have a change to make in our open API docs, or we need to re-run the generation script there?
@tobio tobio force-pushed the add-slo-preventBackfill branch from 9ae4605 to 49e39ec Compare September 15, 2025 12:19
@tobio

This comment was marked as outdated.

@tobio tobio requested a review from wandergeek September 15, 2025 12:46
Copy link
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, especially the bits I didn't write!

@tobio
Copy link
Member

tobio commented Sep 16, 2025

UPDATE: I re-generated the SLO model files with openapi-generator, hoping it would only produce a small scope of changes in those files. It seems to have produced a LOT of changes, so I'll wait for guidance on how to handle that.

@jasonrhodes I updated the client in #1303

@tobio tobio merged commit 697a7f4 into elastic:main Sep 16, 2025
24 checks passed
tobio added a commit that referenced this pull request Sep 17, 2025
* origin/main:
  Improve docs generation (#1313)
  Add optional preventInitialBackfill for SLO API (#1071)
tobio added a commit that referenced this pull request Sep 23, 2025
* origin/main:
  fix: nil reference in api.kibana_synthetics.go:418 in case of unmarshable arrays (#1320)
  Bump github.com/hashicorp/terraform-plugin-framework (#1326)
  Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.37.0 to 2.38.0 (#1325)
  chore(deps): update golang:1.25.1 docker digest to 8305f5f (#1322)
  Clarify how acceptance tests should be run (#1324)
  Move diag utilities from utils to dedicated diagutil package (#1317)
  Add support for Kafka Fleet output types. (#1302)
  Allow a default for `allow_restricted_indices` within an API Key role descriptor (#1315)
  Improve docs generation (#1313)
  Add optional preventInitialBackfill for SLO API (#1071)
  Add support for dataViewId (#1305)
  [Feature] Add unenrollment_timeout parameter to Fleet Agent Policy resource (#1306)
  chore(deps): update actions/setup-go action to v6 (#1301)
  chore(deps): update golang docker tag to v1.25.1 (#1300)
  Update generated SLO client.  (#1303)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Support preventinitialbackfill in kibana_slo
5 participants